<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%
	String path = request.getContextPath();
	String basePath = ContextHolder.getWebServerName(request);
%>
<!doctype html>
<!--[if lt IE 7]><html class="ua-ie6" ><![endif]-->
<!--[if IE 7]><html class="ua-ie7" ><![endif]-->
<!--[if IE 8]><html class="ua-ie8" ><![endif]-->
<!--[if IE 9]><html class="ua-ie9" ><![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<base href="<%=basePath%>">
<title><%=ContextHolder.getConfigByKey("companyIntro")%>-<%=ContextHolder.getConfigByKey("companyName")%></title>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="author" content="ISPERP">
<meta name="Copyright" content="ISPERP" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="format-detection" content="telephone=no">
<link rel="shortcut icon" href="favicon.ico" />

<link rel="stylesheet" type="text/css"
	href="<%=path%>/css/ztree/zTreeStyle.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/css/global_help.css" />
<script type="text/javascript" src="<%=path%>/js/jquery-1x.js"></script>
<script type="text/javascript"
	src="<%=path%>/js/libs/ztree/jquery.ztree.js"></script>
<script type="text/javascript" src="<%=path%>/js/widget/tree.js"></script>
<style type="text/css">
<!--
.pager {
	list-style: none;
}

.pager {
	font-size: 12px; font-weight: 400; margin: 0 auto; width: 90%; padding: 3px 10px 0 0; height: 26px; text-align: right;
}

.pager li {
	float: left; margin-right: 5px; line-height: 22px;
}

.pager li.disablepage {
	color: #999999;
}

.pager li.currentpage {
	font-weight: 700; margin: 0 8px
}

.pager li.currentpage a {
	color: #FFF; background-color: #1F3A87
}

.pager a {
	padding: 4px 8px; border: 1px solid #DCDDDD; text-decoration: none
}

.pager a:hover,.pager a:active {
	background-color: #1e50a2; color: #FFF
}

em {
	color: red
}

.search-result .td2 {
	text-align: left
}
.buttonA {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 42px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}
-->
</style>
<script type="text/javascript">
	function getKeyword() {
		return document.getElementById("searchKeyword").value;
	}
 
</script>

</head>
<body style="overflow-x: hidden;height:auto">
	<div class="searchbox grid_12">
		<form action="">
			<input type="hidden" name="categoryId" value=${categoryId }>
			<input type="text" id="searchKeyword" name="keyword"
				value="${keyword }" placeholder="输入知识关键字"> <input
				type="submit" value="搜索" class="buttonA">
		</form>
	</div>
	<div style="width:90%">
		<c:forEach items="${result.content}" var="entity">
			<table class="search-result">
				<tr>
					<td class="td1"><span style="color:#666">[${entity.categoryName}]</span><a
						href="customer/help/knowledge/knowledgeInfo?id=${entity.id}"
						target="_blank">${entity.title}</a></td>
				</tr>
				<tr>
					<td class="td2">${entity.contents}......</td>
				</tr>
				<tr>
					<td class="td3">阅读数(${entity.readTimes})&nbsp;&nbsp;评论数(${entity.commentaryTimes})&nbsp;&nbsp;<fmt:formatDate
							value="${entity.publishDate}" pattern="yyyy-MM-dd HH:mm" /></td>
				</tr>
			</table>
		</c:forEach>
	</div>
	<div id="list_paget">${pager}</div>
</body>
</html>
